<?php
/**
 * ShopEx licence
 *
 * @copyright  Copyright (c) 2005-2010 ShopEx Technologies Inc. (http://www.shopex.cn)
 * @license  http://ecos.shopex.cn/ ShopEx License
 */
 
class b2c_finder_goods_opinions{
    function __construct(&$app){
        $this->app=$app;
        $this->ui = new base_component_ui($this);
    }    

    var $column_link = '操作';
    function column_link($row){
        if($row['image']){
            $return .= '<a href="index.php?app=b2c&ctl=admin_goods_opinions&act=comment&&_finder[finder_id]='.$_GET['_finder']['finder_id'].'&p[0]='.$row['id'].'" ">'.app::get('b2c')->_('评论列表').'</a> | ';
            $return .= '<a href="index.php?app=b2c&ctl=admin_goods_opinions&act=praise&&_finder[finder_id]='.$_GET['_finder']['finder_id'].'&p[0]='.$row['id'].'" ">'.app::get('b2c')->_('点赞列表').'</a> <br> ';
            $return .= '<a href="index.php?app=b2c&ctl=admin_goods_opinions&act=image&&_finder[finder_id]='.$_GET['_finder']['finder_id'].'&p[0]='.$row['id'].'" ">'.app::get('b2c')->_('标签列表').'</a> | ';
        }
        $return .= '<a href="index.php?app=b2c&ctl=admin_goods_opinions&act=toRemove&&_finder[finder_id]='.$_GET['_finder']['finder_id'].'&p[0]='.$row['id'].'" >'.app::get('b2c')->_('删除').'</a>';
        return $return;
        //  onclick="if(confirm(\'确定删除?\')==false)return false;"
    } 
    var $column_fancy = '设置精品';
    function column_fancy($row){
        if(!$row['fancy']){
            $return = '<a href="index.php?app=b2c&ctl=admin_goods_opinions&act=fancy&&_finder[finder_id]='.$_GET['_finder']['finder_id'].'&p[0]='.$row['id'].'" ">'.app::get('b2c')->_('设置精品').'</a> ';
        }else{
            $return = '<a href="index.php?app=b2c&ctl=admin_goods_opinions&act=fancy&&_finder[finder_id]='.$_GET['_finder']['finder_id'].'&p[0]='.$row['id'].'" ">'.app::get('b2c')->_('取消精品').'</a> ';
        }
        return $return;
        //  onclick="if(confirm(\'确定删除?\')==false)return false;"
    } 
    var $column_image = '图片';
    function column_image($row){
        $return = "";
        if($row['image']){
            $return = $row['image'];
        }
        return $return;
        //  onclick="if(confirm(\'确定删除?\')==false)return false;"
    } 


    
}
